package link.hwx.service.oa.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import link.hwx.entity.oa.OaBillInfoVo;
import link.hwx.mapper.oa.OaArriveSignMapper;
import link.hwx.service.oa.OaArriveSignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@DS("OAData")
@Service
public class OaArriveSignServiceImpl implements OaArriveSignService {

    @Autowired
    private OaArriveSignMapper oaArriveSignMapper;

    @Override
    public OaBillInfoVo findArriveSignByRequestId(String arriveSignMainTableName, String requestid) {
        return oaArriveSignMapper.findArriveSignByRequestId(arriveSignMainTableName, requestid);
    }

    @Override
    public int updateArriveSignSrmDocNoByRequestId(String arriveSignMainTableName, String requestid, String srmdocno) {
        return oaArriveSignMapper.updateArriveSignSrmDocNoByRequestId(arriveSignMainTableName, requestid, srmdocno);
    }

    @Override
    public List<OaBillInfoVo> findArriveSignByDocnoType(String arriveSignMainTableName, String srmdocno, String nodeType) {
        return oaArriveSignMapper.findArriveSignByDocnoType(arriveSignMainTableName, srmdocno, nodeType);
    }
}
